package com.bupt.service.project;

import com.bupt.dto.sys.PageInfo;
import com.bupt.dto.sys.UserDto;
import com.bupt.exception.BaseException;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;

public interface NewProjectService {
    /**
     * 创建项目
     * @param userDto
     * @param projectName
     * @param path
     * @return
     */
    Object createDemandProject(UserDto userDto, HttpServletRequest request,String projectName, String path) throws BaseException;

    /**
     * 删除项目
     * @param userDto
     * @param pId
     * @return
     * @throws BaseException
     */
    Object deleteDemandProject(UserDto userDto,String pId) throws BaseException;

    /**
     * 查询某个项目
     * @param userDto
     * @param pId
     * @return
     * @throws BaseException
     */
    Object getDemandProject(UserDto userDto,String pId) throws  BaseException;

    /**
     * 查询所有项目
     * @param userDto
     * @return
     * @throws BaseException
     */
    Object getDemandProjects(UserDto userDto,HttpServletRequest request) throws BaseException;

}
